<?php 
$username = $this->session->userdata('username');
$password = $this->session->userdata('password');
if (empty($username) AND empty($password)){
	echo"..";
}else{
?>
<div id="wrappercontent">
	<?php foreach($jam_kerja as $data): ?>
	<?php echo form_open('login/proses_update_jam_kerja/'.$data->id); ?>
		Jam Masuk
		<p style="margin-top:5px;"><input type="text" name="jam_masuk" value="<?php echo $data->jam_masuk ?>"></p>
		Jam Keluar
		<p style="margin-top:5px;"><input type="text" name="jam_keluar" value="<?php echo $data->jam_keluar ?>"></p>
		Actived
			<p>
			<?php
			if ($data->b_active=='1'){
				?>
				<label class="radio" style="float:left; margin-top:10px;">
					<input type="radio" name="b_active" id="b_active" value="1" checked>
					Berlaku
				</label>
				<label class="radio" style="float:left; margin-left:10px; margin-top:10px;">
					<input type="radio" name="b_active" id="b_active" value="2">
					Tidak Berlaku
				</label>
				<?php 
			}
			else{
				?>
				<label class="radio" style="float:left; margin-top:10px;">
					<input type="radio" name="b_active" id="b_active" value="1">
					Berlaku
				</label>
				<label class="radio" style="float:left; margin-left:10px; margin-top:10px;">
					<input type="radio" name="b_active" id="b_active" value="2" checked>
					Tidak Berlaku
				</label>
				<?php 
			}
			?>
		<p style="margin-top:50px;">
			<input type="submit" value="Update" class="btn btn-danger">
		</p>
	<?php echo form_close(); ?>
	<?php endforeach ?>
</div>
<?php
}
?>